Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add /browserconfig.xml file and tile images #1481

Closed
wants to merge 1 commit into from
Closed

Conversation

alrra
Copy link
Member

@alrra alrra commented Dec 12, 2013

By default, starting with IE11 on Windows 8.1, IE will request the /browserconfig.xml file when a user clicks/touches the pin site button (same as Safari for iOS does with the apple-touch-icons when the user touches the share button ).


What tiles look like

Adding /browserconfig.xml and the tile images:

  • reduces the number of 404s, especially as IE11 on Windows 8.1 gets more market share
  • provides a starting point for dealing with Windows tiles
  • reminds users about the tile images, so that their website doesn't end up having as a tile the default IE11 logo, or (if the favicon is 32×32px or bigger and not .ico) the website's favicon
  • unlike using <meta> tags, offers a way that doesn't increase the page size

Only two images are provided since:

  • tile.png (558×558px) - can be used for the Small, Medium, and Large tiles, being automatically resized where necessary
  • tile-wide.png (558×270px) - can be used for the Wide tile as, in this case, resizing the 558×558px image would just end up looking weird

The two images are 558×558px and 558×270px because those are the recommended image sizes in order for the tiles to look good on a wide range of devices.

For more in depth information, please refer to the MSDN documentation:

Note(s):

  • from my tests, the /browserconfig.xml file seems to be requested even if the tile images are specified in the html page:

    <meta name="msapplication-TileColor" content="#000"/>
    <meta name="msapplication-square70x70logo" content="tiny.png"/>
    <meta name="msapplication-square150x150logo" content="square.png"/>
    <meta name="msapplication-wide310x150logo" content="wide.png"/>
    <meta name="msapplication-square310x310logo" content="large.png"/>
  • the /browserconfig.xml file and the title images are also requested when the user clicks/touches the add to favorites button:

@mathiasbynens
Copy link
Member

+1

It sucks we have to add yet another “magic file” in the root (+ the images if you choose to add them), but there are just too many downsides if we don’t.

@jonrandahl
Copy link

+1 but I also agree with Mathias! ;-)

@xeniun
Copy link

xeniun commented Dec 13, 2013

+1
I don't like this kind of customizations but in this case I think it's better than none too.

@drublic
Copy link
Member

drublic commented Dec 15, 2013

This adds three more files to the root directory which is pretty much I think. What are the downside of placing the tile images in a separate directory?
Another idea is to reuse the square as apple touch icon. But I think we don't want to provide a far to big icon for iOS users to download.

@mathiasbynens
Copy link
Member

The annoying browserconfig.xml file must be in the root, but at least the images can be moved elsewhere if need be. AFAIK no requests are made to e.g. /tile.png by default.

@alrra
Copy link
Member Author

alrra commented Dec 15, 2013

Another idea is to reuse the square as apple touch icon.

@drublic The reason why I haven't reused the apple-touch-icon as the square tile is because I consider that it would be very confusing, plus, as you pointed out: "we don't want to provide a far to big icon for iOS users to download.".

What are the downside of placing the tile images in a separate directory?

@drublic AFAIK, no real downsides (just a few extra bytes in browserconfig.xml).

I've placed the tile images in the root because I thought:

  • people are already used to the idea of having the *icons in the root and it would be easier for them to immediately guess what those images might be for or where they might be placed
  • it doesn't require users to update /browserconfig.xml if they use a different name for the image directory or when they rename it (and maybe forget about /browserconfig.xml)

Updates:

  • removed <TileColor>#000</TileColor> from /browserconfig.xml because it isn't needed, as the default tiles aren't transparent
  • provided screenshot

@pzi
Copy link

pzi commented Dec 16, 2013

Do Windows Phones use the same file?

@alrra
Copy link
Member Author

alrra commented Dec 16, 2013

Do Windows Phones use the same file?

@pzi:

  • in theory, they should, hence the phrase:

    Note To cover a wide range of devices, use an image 1.8 times the standard tile size so the image can be scaled up or down as needed.

  • don't know if Windows 8.1 is yet available for Windows Phones (or if there are Windows Phones running 8.1 at this moment)

@pzi
Copy link

pzi commented Dec 17, 2013

@alrra Yeah, I saw that phrase but I was wondering if there are any test cases / more information around it (only had a quick look around myself).

The other thing is that IE11 is not yet available on the phone afaik.

@drublic
Copy link
Member

drublic commented Dec 26, 2013

@alrra I'm good with leaving the tile icons in the root directory.

Looks good to me now. We should ship it (with the other relevant changes) :)

@koistya
Copy link

koistya commented Jan 12, 2014

I personally lean towards having icons inside 'img' or 'icons' folder, less files in the root => less distractions.

@ghost ghost assigned alrra Jan 13, 2014
alrra added a commit to h5bp/html5boilerplate.com that referenced this pull request Jan 26, 2014
By default, starting with IE11 on Windows 8.1, IE will request the
`/browserconfig.xml` file when a user clicks/touches the `pin site`
button (same as Safari for iOS does with the `apple-touch-icons` when
the user touches the `share` button).

Adding the `/browserconfig.xml` file and the tile images:

* reduces the number of 404s, especially as IE11 on Windows 8.1 gets
  more market share
* provides a starting point for dealing with Windows tiles
* reminds users about the tile images, so that their website doesn't
  end up having as a tile the default IE11 logo, or (if the favicon
  is 32×32px or bigger and not `.ico`) the website's favicon
* unlike using `<meta>` tags, offers a way that doesn't increase the
  page size

Only two images are provided since:

* `tile.png` (558×558px) - can be used for the `Small`, `Medium`,
  and `Large` tiles, being automatically resized where necessary
* `tile-wide.png` (558×270px) - can be used for the `Wide` tile
  as, in this case, resizing the 558×558px image would just end up
  looking weird

The two images are 558×558px and 558×270px because those are the
recommended image sizes in order for the tiles to look good on a wide
range of devices.

For more in depth information, please refer to the MSDN documentation:

 * http://msdn.microsoft.com/en-us/library/ie/dn455106.aspx
 * http://msdn.microsoft.com/en-us/library/ie/dn255024.aspx

Close #1481.
@alrra
Copy link
Member Author

alrra commented Feb 18, 2014

Thanks for the feedback everyone!

@alrra alrra closed this in 80530d6 Feb 18, 2014
@alrra alrra deleted the browserconfig.xml branch February 18, 2014 22:15
@drublic
Copy link
Member

drublic commented Feb 19, 2014

Nice work, thanks @alrra.

@FlashJunior
Copy link
Contributor

Is there a Demo-Page? i tried http://html5boilerplate.com/ but that did not work :-/

but if i use <meta name="msapplication-config" content="/browserconfig.xml" /> it works perfectly.

@alrra
Copy link
Member Author

alrra commented Feb 21, 2014

i tried http://html5boilerplate.com/ but that did not work :-/

@FlashJunior works for me, can you provide more information?

...
IP - - [21/Feb/2014:03:03:41 -0800] "GET / HTTP/1.1" 200 3299 "-" "Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko" 
IP - - [21/Feb/2014:03:03:41 -0800] "GET /css/main.cb0a846.css HTTP/1.1" 200 2580 "http://html5boilerplate.com/" "Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko" 
IP - - [21/Feb/2014:03:03:43 -0800] "GET /favicon.ico HTTP/1.1" 200 711 "-" "Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko" 
...
// pin button is clicked
IP - - [21/Feb/2014:03:03:44 -0800] "GET /browserconfig.xml HTTP/1.1" 200 602 "-" "Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko" 
IP - - [21/Feb/2014:03:03:45 -0800] "GET /tile.png HTTP/1.1" 200 14082 "-" "Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko" 
IP - - [21/Feb/2014:03:03:45 -0800] "GET /tile-wide.png HTTP/1.1" 200 7095 "-" "Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko" 

Is there a Demo-Page?

@FlashJunior yes, http://demo.html5boilerplate.com/

@FlashJunior
Copy link
Contributor

it's also not working @ http://demo.html5boilerplate.com/

without metatag (http://demo.html5boilerplate.com/):
win81-1

with metatag (local project):
win81-2

Testmachine: Windows 8.1 Pro

@stevenosloan
Copy link

I have it working on http://demo.html5boilerplate.com, but not locally. I found that removing the "X-UA-Compatible" meta tag did the trick.

@alrra
Copy link
Member Author

alrra commented Feb 21, 2014

@FlashJunior After clicking the the pin button multiple time, I was able to kinda reproduce that. It seams to me that IE11 doesn't always use the tile images (although, looking at the logs, the /browserconfig.xml file is still requested every time):

I think this is may be a problem with IE11, so I've filed a bug.

@FlashJunior
Copy link
Contributor

thx. i use <meta name="msapplication-config" content="/browserconfig.xml" /> until it's fixed.

kcmckell pushed a commit to kcmckell/html5-boilerplate that referenced this pull request Feb 25, 2014
By default, starting with IE11 on Windows 8.1, IE will request the
`/browserconfig.xml` file when a user clicks/touches the `pin site`
button (same as Safari for iOS does with the `apple-touch-icons` when
the user touches the `share` button).

Adding the `/browserconfig.xml` file and the tile images:

* reduces the number of 404s, especially as IE11 on Windows 8.1 gets
  more market share
* provides a starting point for dealing with Windows tiles
* reminds users about the tile images, so that their website doesn't
  end up having as a tile the default IE11 logo, or (if the favicon
  is 32×32px or bigger and not `.ico`) the website's favicon
* unlike using `<meta>` tags, offers a way that doesn't increase the
  page size

Only two images are provided since:

* `tile.png` (558×558px) - can be used for the `Small`, `Medium`,
  and `Large` tiles, being automatically resized where necessary
* `tile-wide.png` (558×270px) - can be used for the `Wide` tile
  as, in this case, resizing the 558×558px image would just end up
  looking weird

The two images are 558×558px and 558×270px because those are the
recommended image sizes in order for the tiles to look good on a wide
range of devices.

For more in depth information, please refer to the MSDN documentation:

 * http://msdn.microsoft.com/en-us/library/ie/dn455106.aspx
 * http://msdn.microsoft.com/en-us/library/ie/dn255024.aspx

Close h5bp#1481.
alrra added a commit to use-init/init that referenced this pull request Mar 4, 2014
By default, starting with IE11 on Windows 8.1, IE will request the
`/browserconfig.xml` file when a user clicks/touches the `pin site`
button (same as Safari for iOS does with the `apple-touch-icons` when
the user touches the `share` button).

Adding the `/browserconfig.xml` file and the tile images:

* reduces the number of 404s, especially as IE11 on Windows 8.1 gets
  more market share
* provides a starting point for dealing with Windows tiles
* reminds users about the tile images, so that their website doesn't
  end up having as a tile the default IE11 logo, or (if the favicon
  is 32×32px or bigger and not `.ico`) the website's favicon
* unlike using `<meta>` tags, offers a way that doesn't increase the
  page size

Only two images are provided since:

* `tile.png` (558×558px) - can be used for the `Small`, `Medium`,
  and `Large` tiles, being automatically resized where necessary
* `tile-wide.png` (558×270px) - can be used for the `Wide` tile
  as, in this case, resizing the 558×558px image would just end up
  looking weird

The two images are 558×558px and 558×270px because those are the
recommended image sizes in order for the tiles to look good on a wide
range of devices.

For more in depth information, please refer to the MSDN documentation:

* http://msdn.microsoft.com/en-us/library/ie/dn455106.aspx
* http://msdn.microsoft.com/en-us/library/ie/dn255024.aspx

Ref: h5bp/html5-boilerplate#1481.
alrra added a commit to use-init/init that referenced this pull request Mar 25, 2014
By default, starting with IE11 on Windows 8.1, IE will request the
`/browserconfig.xml` file when a user clicks/touches the `pin site`
button (same as Safari for iOS does with the `apple-touch-icons` when
the user touches the `share` button).

Adding the `/browserconfig.xml` file and the tile images:

* reduces the number of 404s, especially as IE11 on Windows 8.1 gets
  more market share
* provides a starting point for dealing with Windows tiles
* reminds users about the tile images, so that their website doesn't
  end up having as a tile the default IE11 logo, or (if the favicon
  is 32×32px or bigger and not `.ico`) the website's favicon
* unlike using `<meta>` tags, offers a way that doesn't increase the
  page size

Only two images are provided since:

* `tile.png` (558×558px) - can be used for the `Small`, `Medium`,
  and `Large` tiles, being automatically resized where necessary
* `tile-wide.png` (558×270px) - can be used for the `Wide` tile
  as, in this case, resizing the 558×558px image would just end up
  looking weird

The two images are 558×558px and 558×270px because those are the
recommended image sizes in order for the tiles to look good on a wide
range of devices.

For more in depth information, please refer to the MSDN documentation:

* http://msdn.microsoft.com/en-us/library/ie/dn455106.aspx
* http://msdn.microsoft.com/en-us/library/ie/dn255024.aspx

Ref: h5bp/html5-boilerplate#1481.
@toolz0
Copy link

toolz0 commented Mar 29, 2014

When I see an industry standard for browsers on W3C that includes browserconfig.xml, I will then implement it.

@FlashJunior
Copy link
Contributor

I updated my VM Win 8.1 with IE 11.0.9. Still not working without Meta-Tag :-/

@alrra
Copy link
Member Author

alrra commented Jun 13, 2014

Last update from Microsoft was:

screen shot 2014-06-13 at 13 31 26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants